"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));

var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));

var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));

var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));

require("@babel/polyfill");

var _context;

var isHas = (0, _includes["default"])(_context = [1, 2, 3]).call(_context, 2);

var fn = function fn() {
  console.log(isHas);
};

fn();
new _promise["default"](function (resolve, reject) {
  resolve(100);
});

var Point =
/*#__PURE__*/
function () {
  function Point(x, y) {
    (0, _classCallCheck2["default"])(this, Point);
    this.x = x;
    this.y = y;
  }

  (0, _createClass2["default"])(Point, [{
    key: "getX",
    value: function getX() {
      return {
        x: this.x,
        y: this.y
      };
    }
  }]);
  return Point;
}();

var Point1 =
/*#__PURE__*/
function () {
  function Point1(x) {
    (0, _classCallCheck2["default"])(this, Point1);
    this.x = x;
  }

  (0, _createClass2["default"])(Point1, [{
    key: "getX",
    value: function getX() {
      return this.x;
    }
  }]);
  return Point1;
}();

var cp = new Point(25, 24);
console.log(cp);
var cp1 = new Point(11, 22);
console.log(cp1);